//
//  HeaderView.h
//  News
//
//  Created by xalo on 16/3/9.
//  Copyright © 2016年 News. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "GroupsModel.h"

@class HeaderView;

@protocol HeaderViewDelegate <NSObject>

- (void)headerView:(HeaderView *)view withButton:(UIButton *)button;

@end


@interface HeaderView : UITableViewHeaderFooterView

@property (nonatomic,strong) GroupsModel *group;
@property (nonatomic,weak) id<HeaderViewDelegate> delegate;

// 创建表头
- (HeaderView *)headerViewWithTableView:(UITableView *)tableView;

@end
